//
/***********************************************************
             File name:      main.c
             Author:         Bitat (陆叁柒)
             Email :         Bitat@qq.com
             Gitee :         https://gitee.com/bitat
             CSDN  :         https://blog.csdn.net/bitat 
             History:        2023/2/12
************************************************************/
    
#include <stdio.h>
 
int my_strlen(char* arr)
{
    int count = 0;
    while (*arr != '\0')
    {
        count++;
        arr++;
    }
    return count;
 }
 
int main()
{
    char arr[] = { "hello world!" };
    int ret = my_strlen(arr);
    printf("%d\n",ret);
    
    return 0;
}
